package com.imooc.ad.dao;

import com.imooc.ad.entity.AdUnti;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @ClassName AdUnitRepository
 * Created by zghgchao 2019/3/25 15:15
 **/
public interface AdUnitRepository extends JpaRepository<AdUnti,Long> {

    AdUnti findByPlanIdAndUnitName(Long planId,String username);

    List<AdUnti> findAllByUnitStatus(Integer unitStatus);
}
